With this function you can clear the current keyboard state, which essentially means that if the key is being held down, it will no longer be recognised until it is released again (which won't generate a keyboard_key_release event either on this occasion) and pressed again.
keyboard_clear(key);
Argument | Description |
---|---|
key | The key to clear. |
N/A
keyboard_clear(vk_space);
The above code clears the state of the spacebar.